#ifndef _SQUEUE_H_
#define _SQUEUE_H_
#define N 6

typedef struct
{
	struct sendEnv *pData[N];
	int front;
	int rear;
}squeue;

squeue * queue_create();
int enqueue(squeue *sq,struct sendEnv *p);
int queue_full(squeue *sq);
struct sendEnv *dequeue(squeue *sq);
int queue_empty(squeue *sq);
void queue_clear(squeue *sq);
void queue_free(squeue *sq);

#endif
